/*
 * @Description: 
 * @Author: zoe
 * @Date: 2024-09-20 11:18:13
 * @LastEditors: rendc
 * @LastEditTime: 2024-09-20 14:55:48
 */
//定义一个抽象类
public abstract class Animal2{
    //定义成员属性
    private String color;
    private int age;
    //构造器
    public Animal2(){

    }
    public Animal2(String color,int age){
        this.color=color;
        this.age=age;
    }
    //成员方法-抽象方法
    public abstract void eat();
    public abstract void sleep();

}
